package cn.itsource.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.Email;

/**
 * 教师实体类
 */
@Data
public class Teacher {
    /**
     * 教师ID
     */

    private Long id;
    /**
     * 教师姓名
     */
    @Excel(name = "姓名", width = 20)
    private String name;
    /**
     * 教师年龄
     */
    @Excel(name = "年龄", width = 20)
    private Integer age;
    /**
     * 教师性别
     */
    @Excel(name = "性别", replace = {"男_true", "女_false"}, width = 20)
    private Boolean sex;
    /**
     * 教师职位
     */
    @Excel(name = "公职", width = 20)
    private String position;
    /**
     * 教师科目
     */
    @Excel(name = "学科", width = 20)
    private String subject;
}
